<%@ page language="java"
         contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"
         import="java.util.Map"
         import="com.shxt.hotel.background.User"
%>
<%
    if(session.getAttribute("id") == null){
        response.sendRedirect("../login.jsp");
    }else{
        request.setCharacterEncoding("UTF-8");
        Map<String, String[]> paraMap = request.getParameterMap();
        
        User userManager = new User();
        int row = userManager.edit(paraMap);
        
        userManager.close();
        
        response.sendRedirect("../user_profiles.jsp");
    }
%>